package com.canyou.archives.model.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.canyou.archives.model.ArchivesLog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel(value = "ArchivesInformationDTO", description = "设备详细信息")
public class ArchivesInformationDTO implements Serializable {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "设备编号")
    private String number;

    @ApiModelProperty(value = "设备名称")
    private String aname;

    @ApiModelProperty(value = "设备分类名称")
    private String categoryName;

    @ApiModelProperty(value = "使用人员组织名称")
    private String orgName;

    @ApiModelProperty(value = "使用人员部门名称")
    private String deptName;

    @ApiModelProperty(value = "使用人员姓名")
    private String username;

    @ApiModelProperty(value = "使用状态：0未启用，1停用中，2使用中，3空闲，4维修中，5报废")
    private Integer state;

    @ApiModelProperty(value = "财务状态：0未入账，1已入账")
    private Boolean financialRegistration;

    @ApiModelProperty(value = "SN码")
    private String snNumber;

    @ApiModelProperty(value = "采购日期")
    private Date purchaseDate;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "保修政策")
    private String warrantyPolicy;

    @ApiModelProperty(value = "采购金额")
    private Double purchaseAmount;

    @ApiModelProperty(value = "采购地点")
    private String purchasePlace;

    @ApiModelProperty(value = "图片地址集合")
    private List<String> pictureAddress=new ArrayList<>();

    @ApiModelProperty(value = "使用记录集合")
    private List<ArchivesLog> recordLogs=new ArrayList<>();

    @ApiModelProperty(value = "维修记录集合")
    private List<ArchivesLog> maintainLogs=new ArrayList<>();
}
